package com.example.aics.bean;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("chat_messages")
public class ChatMessages {

    // 唯一标识，映射到MongoDB中
    @Id
    private ObjectId messageId ;

    // 记忆ID
    private String memoryId ;

    // 用json格式记录聊天列表
    private String content ;

}
